import axios from 'axios'
import { BASEURL } from '../constants'
const eventInstance = axios.create({
  baseURL: BASEURL,
})

export function getEvents(page, size) {
  return eventInstance.get('/events/font', {
    params: {
      page,
      size,
    },
  })
}

export function postEvents(obj) {
  return eventInstance.post('/events', obj)
}
